package com.ruoyi.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("goods")
public class Goods implements Serializable {
    private static final long serialVersionUID = -1508012968930965779L;

    public Goods(Integer id, Integer goodsCount) {
        this.id = id;
        this.goodsCount = goodsCount;
    }

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("goods_name")
    private String goodsName;
    @TableField("goods_price")
    private BigDecimal goodsPrice;
    @TableField("goods_sum")
    private Integer goodsSum;
    @TableField("goods_count")
    private Integer goodsCount;
}
